//切割字符串转换参数表 
function toParamMap(str){ 
    var map = {}; 
    var segs = str.split("&"); 
    for(var i in segs){ 
       var seg = segs[i]; 
       var idx = seg.indexOf('='); 
       if(idx < 0){ 
             continue; 
       } 
       var name = seg.substring(0, idx); 
       var value = seg.substring(idx+1); 
       map[name] = value; 
     } 
    return map; 
}

//隐式获取url响应内容(JSONP) 
function openImplict(url){ 
    var script = document.createElement('script'); 
    script.src = url; 
    document.body.appendChild(script);         
}
